From 2bb80a9bb2127bf1d6cd4bd078a3cc03222e924a Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Tue, 15 Dec 2015 18:14:16 -0500 Subject: [PATCH] gadget: Fix a thinko in baseline adjustment We are making the allocation smaller, so the baseline needs to get smaller too, not bigger. --- gtk/gtkcssgadget.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/gtkcssgadget.c b/gtk/gtkcssgadget.c index b3bf1c607d..f1a0e975d0 100644 --- a/gtk/gtkcssgadget.c +++ b/gtk/gtkcssgadget.c @@ -547,7 +547,7 @@ gtk_css_gadget_allocate (GtkCssGadget *gadget, content_allocation.width = allocation->width - extents.left - extents.right; content_allocation.height = allocation->height - extents.top - extents.bottom; if (baseline >= 0) - baseline += extents.top; + baseline -= extents.top; if (content_allocation.width < 0) { -- 2.30.2